Telegram Group & Telegram Channel
4. Program to Accept value of Radius and Calculate Area of Circle.

class CalculateCircleAreaExample
{

public static void main(String[] args)
{

int radius = 3;
System.out.println("The radius of the circle is " + radius);

/*
* Area of a circle is pi * r * r where r is a radius of a circle.
*/

// NOTE : use Math.PI constant to get value of pi
double area = Math.PI * radius * radius;

System.out.println("Area of a circle is " + area);
}
}

@java_codings



tg-me.com/java_codings/7
Create:
Last Update:

4. Program to Accept value of Radius and Calculate Area of Circle.

class CalculateCircleAreaExample
{

public static void main(String[] args)
{

int radius = 3;
System.out.println("The radius of the circle is " + radius);

/*
* Area of a circle is pi * r * r where r is a radius of a circle.
*/

// NOTE : use Math.PI constant to get value of pi
double area = Math.PI * radius * radius;

System.out.println("Area of a circle is " + area);
}
}

@java_codings

BY Advance Java πŸ‘¨β€πŸ’»


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/java_codings/7

View MORE
Open in Telegram


Advance Java ‍ Telegram | DID YOU KNOW?

Date: |

Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at β‚Ή43,559 crore at the end of March 2021 compared to the company’s market capitalisation of β‚Ή44,447 crore.

In many cases, the content resembled that of the marketplaces found on the dark web, a group of hidden websites that are popular among hackers and accessed using specific anonymising software.β€œWe have recently been witnessing a 100 per cent-plus rise in Telegram usage by cybercriminals,” said Tal Samra, cyber threat analyst at Cyberint.The rise in nefarious activity comes as users flocked to the encrypted chat app earlier this year after changes to the privacy policy of Facebook-owned rival WhatsApp prompted many to seek out alternatives.Advance Java ‍ from jp


Telegram Advance Java πŸ‘¨β€πŸ’»
FROM USA